Skip to content

Fix infinite height when fill_height=True and footer_links=[]#13203

Open
Aarnonn wants to merge 1 commit intogradio-app:mainfrom
Aarnonn:fix/fill-height-empty-footer-12992
Open

Fix infinite height when fill_height=True and footer_links=[]#13203
Aarnonn wants to merge 1 commit intogradio-app:mainfrom
Aarnonn:fix/fill-height-empty-footer-12992

Conversation

@Aarnonn
Copy link
Copy Markdown

@Aarnonn Aarnonn commented Apr 6, 2026

Summary

  • When fill_height=True and footer_links=[], the Gradio interface grows to infinite height because min-height: 100% on .wrap doesn't establish a definite height for flex children, and without a footer element to anchor the layout, flex-grow causes unbounded expansion.

    • Fix: use height: 100% instead of min-height: 100% on .wrap when fill_height is enabled, giving the flex container a definite height constraint.

Closes #12992

Test plan

  • Launch demo/fill_height_no_footer/run.py and verify the interface fills viewport height without infinite growth
  • Launch a normal fill_height=True app with default footer and verify it still works correctly
  • Run pnpm test:browser for fill_height_no_footer.spec.ts

kumquat

…ight: 100% instead of min-height: 100% on .wrap when fill_height is enabled, so the flex container has a definite height constraint even without a footer element. Closes gradio-app#12992
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 6, 2026

This PR has been flagged as AI generated and labelled accordingly.

@freddyaboulton
Copy link
Copy Markdown
Collaborator

Hi @Aarnonn thanks for the pr. Can you please record a video or gif showing that this fixes the issue in spaces?

@Carbaz
Copy link
Copy Markdown

Carbaz commented Apr 9, 2026

Hi @Aarnonn thanks for the pr. Can you please record a video or gif showing that this fixes the issue in spaces?

I built a dockerized gradio on my hugginface spaces to test the PR, but I need a compiled Wheel to install there,
pip installing from branch does not works.

https://huggingface.co/spaces/Carbaz/Infinite_Dockerized (Current version is latest not the PR one, until a wheel is provided)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"fill_height" makes interface grow to infinite if "footer_links=[]" on Hugging Face.

3 participants